﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TestListInModel.Models;

namespace TestListInModel.Controllers
{
    public class HomeController : Controller
    {
        [HttpGet]
        public ActionResult Index()
        {
            theModel model = new theModel();
            return View(model);
        }

        [HttpPost]
        public ActionResult Index(theModel model) {
            return View(model);
        }

        [HttpPost]
        public ActionResult theAjaxPost() { 
            theEntity entity = new theEntity();
            return PartialView("_thePartial", entity); 
        }
    }
}